package com.molin.threadTest.myThreadTest;

public class Demo01 {
    //getName()
    public static void main(String[] args) {
        MyThread myThread = new MyThread();
        myThread.setName("小强");

        myThread.start();
        MyThread myThread1 = new MyThread();
        myThread1.setName("小强2");
        myThread1.start();

        MyThread myThread2= new MyThread("小刚");
        myThread2.start();
    }
}
